﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SupportLibrary;
using TestSDKviaBankService.BankWebService;

namespace TestSDKviaBankService
{
    public class BankService
    {
        private Dictionary<string, string> configs = null;
        

        public BankService(Dictionary<string,string> iconfigs)
        {
            configs = iconfigs;
        }

        [Automation]
        public void Reverse()
        {

            try
            {
                BankingServiceClient client = new BankingServiceClient();
                ReverseRequest request = new ReverseRequest();
                
                 client.ReverseTransaction(request);
            }
            catch {
             
            }
            
        }
        
        [Automation]
        public void Debit()
        {

            try
            {
                BankingServiceClient client = new BankingServiceClient();
                DebitRequest request = new DebitRequest();
                
                 client.RequestDebit(request) ;
            }
            catch
            {
                
            }

        }

        [Automation]
        public void Transfer()
        {

            try
            {
                BankingServiceClient client = new BankingServiceClient();
                MoneyTransferRequest request = new MoneyTransferRequest();

                client.TransferMoney(request);
            }
            catch
            {
                
            }

        }


    }
}
